﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Win32;
using System.IO;
using System.Web.UI.HtmlControls;
using System.Threading;
using System.Collections;

public partial class Student_PersonInformation : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DBaccess db = new DBaccess();
        string sql = "select mname,dname,gpa,score,last_logn_time from mr_member a,mr_student b,mr_department c where a.mid = b.sid and b.department=c.did and mid=' "+Session["mid"].ToString()+"'";
        SqlDataReader read = db.GetReader(sql);
        read.Read();
        Label8.Text = read.GetValue(0).ToString();
        Label3.Text = read.GetValue(1).ToString();
        Label10.Text = read.GetValue(2).ToString();
        Label5.Text = read.GetValue(3).ToString();
        Label7.Text = read.GetValue(4).ToString();

    }
}